﻿#region Librerias

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Windows;
using System.Windows.Threading;
using ESF.General;
using System.Collections.Specialized;
using System.Net;
using ESF.General.Text;
using System.Threading;
using System.Deployment.Application;
using ESF.General.Entity;
using ESF.SFT.Proxies;

#endregion


namespace ESF.SFT.FileUploader
{
	public class Program : Application
	{
		#region Variables

		internal static List<Couple<string, string>> Conf;
		
		internal static List<FileRegisterValidatorSet> FileRegisterValidatorSets;

		#endregion


		#region Ventanas

		internal static Program Instance; 
		
		internal static FileUploaderWindow winFilUp;

		internal static SignInWindow winSignIn;

		internal static SplashScreen winSP;

		internal static InternetConnectionOptions winICO;

		#endregion


		#region Punto de Inicio

		[STAThread]
		public static void Main (string [] pArgs)
		{
			Log.CurrentStep = "Inicio de Aplicación";
			
			Log.SetDefaultUnhanledExceptionManagers();


			try
			{
				Program.Instance = new Program ();
				
				winSP = new SplashScreen();

				winSP.Show ();

				Program.Instance.Run ();
			}
			catch (Exception pEx)
			{
				Log.Error (pEx);
			}
		}

		#endregion
	}
}
